package com.wxyzz.canteenadmin.shop.empType.controller;

import com.wxyzz.canteenadmin.shop.empType.service.EmpTypeService;
import com.wxyzz.canteencommon.common.R;
import com.wxyzz.canteencommon.entity.shop.employee.EmpType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * --- 加油，努力 ---
 *
 * @Author XYP
 * @Date 2024/10/11
 * @Solgne 从想做到能做
 * @Desc
 */
@RestController
@RequestMapping("/shop/empType")
public class EmpTypeController {
    @Autowired
    private EmpTypeService empTypeService;

    @GetMapping("/allType")
    public R allType (){
        List<EmpType> empTypes = empTypeService.findAllType();
        return R.ok(empTypes);
    }
}
